﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HMIS.FrameWork.DomainBase
{
	/// <summary>
	/// 可以持久到数据库的业务类都要继承的基类
	/// </summary>
	public abstract class BaseEntity : BaseObject
	{
		public BaseEntity()
		{
			Id = Guid.NewGuid().ToString();
			CreateTime = DateTime.Now;
			IsDelete = false;
		}
		public virtual string Id { get; set; }

		public virtual DateTime CreateTime { get; set; }

		/// <summary>
		/// 创建用户
		/// </summary>
		public virtual string CreateUser { get; set; }

		public virtual bool IsDelete { get; set; }

		public virtual Int32 Version { get; set; }

		/// <summary>
		/// 描述
		/// </summary>
		public virtual string Description { get; set; }

	}
}
